module.exports = {
  lintOnSave: false,
  css: {
    loaderOptions: {
      postcss: {
        plugins: [require("postcss-pxtorem")({ rootValue: 37.5 })],
      },
    },
  },
  devServer: {
    // 允许跨域
    headers: {
      "Access-Control-Allow-Origin": "http://localhost:8080", // 替换成你前端运行的域名+端口
      "Access-Control-Allow-Credentials": "true", // 允许携带凭证
    },
  },
};
